<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Discontinuous Logs in the Restoration Time Range">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002200038777.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002189332534">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Discontinuous Logs in the Restoration Time Range</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002189332534"></a><a name="EN-US_TOPIC_0000002189332534"></a>
  <h1 class="topictitle1">Discontinuous Logs in the Restoration Time Range</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">Symptom</h4>
    <p>Logs are discontinuous during the restoration time range.</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Possible Causes</h4>
    <p>The CPU load, memory load, or I/O load of the GaussDB instance is heavy. As a result, logs are discontinuous in the restoration time range.</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Log in to the host where the client is installed.</span></li>
     <li><span>Run the <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200058513_b1792217164163">cd <em id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200058513_i220810187432">/opt/</em>DataBackup/ProtectClient/ProtectClient-E/slog/Plugins/GeneralDBPlugin</strong> command to go to the log directory of the host where the client is installed. (In this step, assume that the client is installed in the <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200058513_b678513114277">/opt</strong> directory. Change the directory based on the actual installation directory).</span></li>
     <li><span>Run the following command to query the restoration timestamp range:</span><p></p><pre class="screen">grep -nr "time_range_info:"</pre> <p></p></li>
     <li><span>Check the discontinuous timestamps and use the timestamp conversion tool to convert the timestamps to the time in the format of <em>YYYYMMDDHHMMSSMMM</em> (year, month, day of month, hour, minute, second, millisecond)</span></li>
     <li><span>Log in to an instance node as user <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200144117_b979819366818">root</strong>. For a centralized instance, log in to the active DN (usually <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200144117_b54969215259">dn_6001</strong>). For a distributed instance, log in to the first CN (usually <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200144117_b1815133162514">cn_5001</strong>). Access <strong id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200144117_b661765314255">$GAUSSLOG/gs_log/</strong><em id="EN-US_TOPIC_0000002189332534__en-us_topic_0000002200144117_i2324716173914">Node name</em>.</span></li>
     <li><span>Search for <span class="uicontrol"><b>successfully append barrier record</b></span> or <span class="uicontrol"><b>[BarrierCreator]barrier</b></span> in the barrier logs near the discontinuous time ranges.</span></li>
     <li><span>Check whether no log is recorded for more than 1 second within the discontinuous time ranges.</span><p></p>
      <ul>
       <li>If it is true, run the following command to view the cm_agent monitoring log and check whether the CPU load, memory load, or I/O load is heavy, or whether other hardware indicator values are high within the time ranges during which an exception occurs:<pre class="screen">$GAUSSLOG/gs_log/cm/cm_agent</pre>
        <ul>
         <li>If yes, reduce the CPU, memory, or I/O load.</li>
         <li>If no, contact technical support engineers.</li>
        </ul></li>
       <li>If no, contact technical support engineers.</li>
      </ul> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="en-us_topic_0000002200038777.html">FAQs</a>
    </div>
   </div>
  </div>
 </body>
</html>